mhtml-mode: Use `run-mode-hook' to run `prog-mode-hook' (bug#70671)
authorIhor Radchenko <yantar92@posteo.net>
Fri, 3 May 2024 07:46:22 +0000 (10:46 +0300)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 3 May 2024 15:02:54 +0000 (11:02 -0400)
commit15c77f2fce418983147346589158e2f0da97fa43
tree99b99e20225152e770a3c686d3a1559374b92800
parent4078d0fd3ee9e55c3da219aa6e7788ac6130697b
mhtml-mode: Use `run-mode-hook' to run `prog-mode-hook' (bug#70671)

* lisp/textmodes/mhtml-mode.el (mhtml-mode): When running hooks
simulating inheritance from `prog-mode', use `run-mode-hooks' that
honors `delay-mode-hooks' macro.  Note that `delay-mode-hooks' is bound
to non-nil when major mode body is evaluated, so there is no chance that
any major mode-related hooks are executed twice.
lisp/textmodes/mhtml-mode.el